import Vue from 'vue'
import VueRouter from "vue-router"
import VueResource from "vue-resource"
import routes from './routes.js'
import Config from './config.js'
import moment from 'moment'
import Highcharts from 'highcharts/highstock';
import HighchartsMore from 'highcharts/highcharts-more';
import HighchartsDrilldown from 'highcharts/modules/drilldown';
import Highcharts3D from 'highcharts/highcharts-3d';
import Highmaps from 'highcharts/modules/map';
import HighchartThemes from 'highcharts/themes/avocado';
import MintUI from 'mint-ui';

HighchartsMore(Highcharts)
HighchartsDrilldown(Highcharts);
Highcharts3D(Highcharts);
Highmaps(Highcharts);
HighchartThemes(Highcharts);

//开启debug模式
Vue.config.debug = true;
Vue.use(VueRouter);
Vue.use(VueResource);
Vue.use(MintUI);
Vue.prototype.utilHelper = Config;
Vue.prototype.$highcharts = Highcharts; 
Vue.prototype.$moment = moment;
Vue.http.options.emulateJSON = true;


const router = new VueRouter({
	//mode: 'history',
	base: __dirname,
	routes
})

const app = new Vue({
	router: router
		/*,
		  render: h => h(App)*/
}).$mount('#app')

